home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-06-13 | 715 b | 39 lines | [TEXT/EDIT] |
- -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C)
- -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
- --
- class TEST_CLONE2
-
- creation make
-
- feature
-
- make is
- local
- ir: INTEGER_REF;
- a: ANY;
- do
- is_true(("").is_equal(clone("")));
-
- -- *** ??? *** clone(expanded)
- -- is_true(clone(3) = 3);
- -- a := clone(3);
- -- ir ?= a;
- -- is_true(ir.item = 3);
- end;
-
- is_true(b: BOOLEAN) is
- do
- cpt := cpt + 1;
- if not b then
- std_output.put_string("TEST_CLONE2: ERROR Test # ");
- std_output.put_integer(cpt);
- std_output.put_string("%N");
- else
- -- std_output.put_string("Yes %N");
- end;
- end;
-
- cpt: INTEGER;
-
- end -- TEST_CLONE
-